package com.ym.ms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zhang
 */
@SpringBootApplication
@ServletComponentScan
@EnableAutoConfiguration
@ComponentScan(basePackages={"com.ym.ms"})
public class ClientApp extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ClientApp.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ClientApp.class, args);
    }
}
